package com.indexingsystem.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.indexingsystem.boss.admin.mapper.AppInstitutionRelationsMapper;
import com.indexingsystem.boss.entity.AppInstitutionRelations;
import com.indexingsystem.system.service.IAppInstitutionRelationsService;

@Service
public class AppInstitutionRelationsServiceImpl implements IAppInstitutionRelationsService
{
    @Resource
    private AppInstitutionRelationsMapper appInstitutionRelationsMapper;

    @Override
    public int deleteByPrimaryKey(String relationsId)
    {
        return appInstitutionRelationsMapper.deleteByPrimaryKey(relationsId);
    }

    @Override
    public int insert(AppInstitutionRelations record)
    {
        return appInstitutionRelationsMapper.insert(record);
    }

    @Override
    public int insertSelective(AppInstitutionRelations record)
    {
        return appInstitutionRelationsMapper.insertSelective(record);
    }

    @Override
    public AppInstitutionRelations selectByPrimaryKey(String relationsId)
    {
        return appInstitutionRelationsMapper.selectByPrimaryKey(relationsId);
    }

    @Override
    public int updateByPrimaryKeySelective(AppInstitutionRelations record)
    {
        return appInstitutionRelationsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AppInstitutionRelations record)
    {
        return appInstitutionRelationsMapper.updateByPrimaryKey(record);
    }

	@Override
	public AppInstitutionRelations getAppInstitutionRelationsByAppId(String appId) {
		return appInstitutionRelationsMapper.getAppInstitutionRelationsByAppId(appId);
	}

	@Override
	public List<AppInstitutionRelations> getAppInstitutionRelaByInstitutionIdList(String institutionId) {
		return appInstitutionRelationsMapper.getAppInstitutionRelaByInstitutionIdList(institutionId);
	}
}